import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { setupAutoFit } from './utils/autofit'
import './assets/styles/index.scss'
// 引入 element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import BaiduMap from 'vue-baidu-map-3x' // 百度地图
import 'uno.css'  // 添加这一行
// 创建应用实例
const app = createApp(App)

app.use(ElementPlus, {
    locale: zhCn,
})

// 配置自适应
setupAutoFit()

app.use(BaiduMap, {
    ak: 'tEpeS8qwvQwKinQkMa7x037oI0jMYFpD'
})

// 挂载路由和应用
app.use(router)
app.mount('#app')
